package com.xzk.consumer.client;

import com.xzk.consumer.pojo.User;
import org.springframework.stereotype.Component;

/**
 * @Classname UserClientFallback
 * @Description TODO
 * @Date 2020/9/23 12:53
 * @Created by ccc-j
 * @email ccc-ju@outlook.com
 */
@Component
public class UserClientFallback implements UserClient {
    @Override
    public User queryById(Long id) {
        User user = new User();
        user.setName("用户异常");
        return user;
    }
}
